#ifndef STAFFRESULT_H
#define STAFFRESULT_H

#include <QWidget>
#include "personstaff.h"

class Calendar;
class InquireSql;

enum LineEditTime{start, end};

namespace Ui {
class StaffResult;
}

class StaffResult : public QWidget
{
    Q_OBJECT
    
public:
    explicit StaffResult(QWidget *parent = 0);
    ~StaffResult();
    bool eventFilter(QObject *target, QEvent *event);
    void displayTableWidgetStaffResult();
    void initLineEditTime();

private slots:
    void slotUpdateLineEditDate(QString);

    void on_pushButtonInquire_clicked();

    void on_comboBox_activated(int index);

private:
    void setQtableWidgetHeaderStyle();
    void setTableWidgetColor();
    Ui::StaffResult *ui;
    Calendar *m_calendar;
    InquireSql *m_sql;
    int LineEdit;
    bool LineEditEnable;
    staffList m_list;
};

#endif // STAFFRESULT_H
